//
//  ALProgressHuD.m
//  FanBei
//
//  Created by 哀木涕 on 2016/12/27.
//  Copyright © 2016年 chuxiangkeji. All rights reserved.
//

#import "ALProgressHuD.h"

@implementation ALProgressHuD
+ (void)show{
    [self addView];
    [self showWithStatus:@"加载中..." maskType:SVProgressHUDMaskTypeClear];
}
+ (void)showWithStatus:(NSString*)status{
    [self addView];
    [self showWithStatus:status maskType:SVProgressHUDMaskTypeClear];
}
+ (void)showSuccessWithStatus:(NSString*)string{
    [self addView];
    [self showSuccessWithStatus:string maskType:SVProgressHUDMaskTypeClear];
}
+ (void)showErrorWithStatus:(NSString *)string{
    [self addView];
    [self showErrorWithStatus:string maskType:SVProgressHUDMaskTypeClear];
}
+ (void)showInfoWithStatus:(NSString *)string{
    [self addView];
    [self showInfoWithStatus:string maskType:SVProgressHUDMaskTypeClear];
}
+(void)addView{
    [self setBackgroundColor:[[UIColor blackColor] colorWithAlphaComponent:0.6]];
    [self setForegroundColor:[UIColor whiteColor]];
}
@end
